<a href="#" onclick="$('#new-task-form').toggle(); return false;"><h3>
    <img src="/images/icons/plus-orange.png" class="icon" /> Новая задача
</h3></a>

<?$form=$this->beginWidget('CActiveForm', array(
    'id'=>'new-task-form',
    'enableAjaxValidation'=>false,
    'htmlOptions' => array(
        'enctype' => 'multipart/form-data',
        'class' => 'hide'
    )
))?>

<div class="form">
    
    <div class="row">
        <? $this->widget('application.extensions.cleditor.ECLEditor', array(
            'model'=>$NEWTASK,
            'attribute'=>'text',
            'options'=>array(
                #'width'=>'700',
                #'height'=>250,
                'useCSS'=>true,
            ),
            'value'=>$NEWTASK->text,
        )); ?>
    </div>
    
    <div class="row">
        <?=$form->labelEx($NEWTASK,'critical'); ?>
        <?=$form->checkBox($NEWTASK,'critical',array('tabindex'=>1)); ?>
        <?=$form->error($NEWTASK,'critical'); ?>
    </div>
    
    <div class="row">
        <?=$form->labelEx($NEWTASK,'files'); ?><br />
        <? $this->widget('CMultiFileUpload', array(
             'model'=>$NEWTASK,
             'attribute'=>'files',
             'accept'=>'jpg|gif|png',
             'options'=>array(
             ),
        )); ?>
    </div>
    
    <div class="row">
        <?=CHtml::submitButton(TaskModule::t('app', 'Создать задачу'))?>
    </div>
    
</div>

<?$this->endWidget()?>
